import { GET, POST, UPLOAD,POSTS } from '@/api/request'

export default {
    OrderSubmit(data = {}) {
        return POST({
            url: '/order/order/submit',
            params: data
        })
    },
    DirectSubmit(data = {}) {
        return POST({
            url: '/order/order/directsubmit',
            params: data
        })
    },
    OrderIndex(data = {}) {
        return POST({
            url: '/order/order/index',
            params: data
        })
    },
    OrderInfo(data = {}) {
        return POST({
            url: '/order/order/info',
            params: data
        })
    },
    logisticsOrder(OrderNum = 0) {
        return GET({
            url: `https://api.oioweb.cn/api/common/delivery?nu=${OrderNum}`,
        })
    },
    OrderRate(data = {})
    {
        return POSTS({
            url:'/order/order/rate',
            params:data
        })
    },
    OrderConfirm(data = {})
    {
        return POSTS({
            url:'/order/order/confirm',
            params:data
        })
    },
    delOrder(data = {})
    {
        return POSTS({
            url:'/order/order/delOrder',
            params:data
        })
    },
    OrderConsume(data = {})
    {
        return POSTS({
            url:'/order/order/consume',
            params:data
        })
    },
    OrderConsumeDel(data = {})
    {
        return POSTS({
            url:'/order/order/consumeDel',
            params:data
        })
    },
      //用户充值
      onRecharge(data = {}){
        return POST({
            url:'/order/order/recharge',
            params:data
        })
    }
}